package com.pureut.system.controller;

import com.pureut.common.core.web.domain.AjaxResult;
import com.pureut.system.domain.MaterialCoding;
import com.pureut.system.service.IMaterialCodingService;
import com.pureut.system.service.MaterialBomDetailService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: YSL
 * @Date: 2023/5/4 16:22
 * @Desc: 物料类别控制层controller
 */
@RestController
@RequestMapping("/materialCoding")
public class MaterialCodingController {

    @Resource
    IMaterialCodingService IMaterialCodingService;

    /**
     * 查询物料类别
     */
    @GetMapping("/selectMaterialCodingList")
    public AjaxResult selectMaterialCodingList() {
        return AjaxResult.success(IMaterialCodingService.selectMaterialCodingList());
    }
}
